package snmptest.gateway;

import com.isnmp.common.snmp.GenJavaCodeTool;
import com.isnmp.common.snmp.SNMPFactory;


public class GenJavaCode {
    public static void main(String[] args) {
        String packageName = "com.isnmp.common.snmp.mib";
        String srcCodeDirectory = "C:/";
        GenJavaCodeTool.setJavaCodeDirectory(srcCodeDirectory, packageName);
        try {
            SNMPFactory.loadMib("RFC1213-MIB");
        } catch (Exception ex) {
            ex.printStackTrace();
        }

        GenJavaCodeTool.genJavaCode("MibSNMP2Entry", "1.3.6.1.2.1.11");
    }
}